package com.spring.campus_express_delivery.dao;

import com.spring.campus_express_delivery.entity.ExpressCompany;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository("ExpressCompanyDao")
@Mapper
public interface ExpressCompanyDao {
    //取件地址列表
    List<ExpressCompany> selectExpressCompanyByPage(HashMap<String, Object> map);
    //统计数目
    int selectCountByExpressCompany();
    //添加订单取件地址类型
    void insertExpressCompanyType(ExpressCompany expressCompany);

    ExpressCompany selectByExpressId(int id);

    void updateExpressCompanyType(ExpressCompany expressCompany);

    void deleteExpressCompanyById(Integer id);

    ExpressCompany selectByExpressCompanyType(String expressCompanyType);
}
